<div class="section">
	<div class="block">
		<?php
		$form = $this->beginWidget('GxActiveForm', array(
			'action' => Yii::app()->createUrl($this->route),
			'method' => 'get',
		));
		?>
		<table class="table full">
			<tr>
				<th scope="row" class="align-right"><?php echo $form->label($receipt, 'payment_number', array('label' => 'Receipt Number')); ?></th>
				<td><?php echo $form->textField($receipt, 'payment_number'); ?></td>
				<th scope="row" class="align-right"><?php echo $form->label($receipt, 'payer_name', array('label' => 'Received From')); ?></th>
				<td><?php echo $form->textField($receipt, 'payer_name', array('class' => " align-left")); ?></td>
				<th scope="row" class="align-right"><?php echo $form->label($receipt, 'invoice_number'); ?></th>
				<td><?php echo $form->textField($receipt, 'invoice_number', array('class' => " align-left", 'size' => 33)); ?></td>
			</tr>
			<tr>
				<th scope="row" class="align-right"><?php echo $form->label($receipt, 'payment_method_type_code', array('label' => 'Payment Method')); ?></th>
				<td><?php echo $form->dropDownList($receipt, 'payment_method_type_code', PaymentMethodType::getListData(), array('prompt' => '', 'style' => 'width: 100%')); ?></td>
				<th scope="row" class="align-right"><?php echo $form->label($receipt, 'payment_ref_no', array('label' => 'Payment Ref No')); ?></th>
				<td><?php echo $form->textField($receipt, 'payment_ref_no', array('class' => " align-left")); ?></td>
				<th scope="row" class="align-right"><?php echo $form->label($receipt, 'payment_date', array('label' => 'Receipt Date')); ?></th>
				<td>
					<?php
					$form->widget('PsJuiDatePicker', array(
						'model' => $receipt,
						'attribute' => 'payment_date_from',
						'options' => array(
							'showButtonPanel' => false,
							'changeMonth' => true,
							'changeYear' => true,
							'dateFormat' => 'dd-mm-yy',
						),
						'htmlOptions' => array(
							'size' => 10
						)
					));
					?>
					-
					<?php
					$form->widget('PsJuiDatePicker', array(
						'model' => $receipt,
						'attribute' => 'payment_date_to',
						'options' => array(
							'showButtonPanel' => false,
							'changeMonth' => true,
							'changeYear' => true,
							'dateFormat' => 'dd-mm-yy',
						),
						'htmlOptions' => array(
							'size' => 10
						)
					));
					?>
				</td>
			</tr>
		</table>
		<div class="row buttons">
			<?php echo GxHtml::submitButton(Yii::t('app', 'Search'), array('class' => 'green', 'name' => 'action')); ?>
			<?php echo GxHtml::submitButton(Yii::t('app', 'Clear Filters'), array('class' => '', 'name' => 'action')); ?>
		</div>
		<?php $this->endWidget(); ?>
	</div>
</div><!-- search-form -->
